import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import AMapLoader from '@amap/amap-jsapi-loader'
import '@vuemap/vue-amap/dist/style.css'

const app = createApp(App)

// 高德地图配置
AMapLoader.load({
  key: '934f5ffa288086b97272b52d962fb3e0',
  version: '2.0',
  plugins: ['AMap.MarkerClusterer', 'AMap.Geocoder']
}).then(() => {
  app.use(router)
  app.mount('#app')
}).catch(e => {
  console.error('高德地图加载失败:', e)
})